package com.ywz.project.base.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;

/**
* <p>
* 登录日志表
* </p>
*
* @author 游王子og
* @since 2025-04-16
*/
@Getter
@Setter
@ToString
@TableName("t_sys_login_log")
@Schema(description = "登录日志表")
@ColumnWidth(20)
@ExcelIgnoreUnannotated
public class TSysLoginLog implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 日志主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "日志主键")
    @ExcelProperty(value = "日志主键")
    private Long id;

    /**
     * 客户端ip
     */
    @TableField("client_ip")
    @Schema(description = "客户端ip")
    @ExcelProperty(value = "客户端ip")
    private String clientIp;

    /**
     * 日志内容
     */
    @TableField("log_info")
    @Schema(description = "日志内容")
    @ExcelProperty(value = "日志内容")
    private String logInfo;

    /**
     * 用户id
     */
    @TableField("user_id")
    @Schema(description = "用户id")
    @ExcelProperty(value = "用户id")
    private String userId;

    /**
     * 用户名
     */
    @TableField("user_name")
    @Schema(description = "用户名")
    @ExcelProperty(value = "用户名")
    private String userName;

    /**
     * 部门名称
     */
    @TableField("dept_name")
    @Schema(description = "部门名称")
    @ExcelProperty(value = "部门名称")
    private String deptName;

    /**
     * 乐观锁
     */
    @TableField("REVISION")
    @Schema(description = "乐观锁")
    @Version
    private Integer revision;

    /**
     * 创建人
     */
    @TableField("CREATED_BY")
    @Schema(description = "创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField("CREATED_TIME")
    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    @TableField("UPDATED_BY")
    @Schema(description = "更新人")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField("UPDATED_TIME")
    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;

    /**
     * 是否删除1是0否
     */
    @TableField("IS_DELETED")
    @Schema(description = "是否删除1是0否")
    private Integer isDeleted;
}
